#include<stdio.h>
int main()
{
	int cnt,i;
	float number;
	int Zheng,Fu,Ling;
	while(scanf("%d",&cnt!=E0F))
	{
		for(i=1;i<cnt;i++)
		{
			scanf("%d ",&number); 
			if(number>0)
			Zheng++;
			if(number<0)
			Fu++;
			if(number==0)
			Ling++;
		}
		
	}
	printf("%d %d %d",Zheng,Fu,Ling);
	return 0;
}
